package com.journey.org.ui.mine.collection

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.journey.org.BR
import com.journey.org.R
import com.journey.org.databinding.FragmentMineCollectionBinding
import com.mvvmhabit.org.base.BaseFragment

/**
 * 我的收藏
 */
class CollectionFragment : BaseFragment<FragmentMineCollectionBinding, CollectionViewModel>() {
    override fun initVariableId(): Int = BR.viewModel

    override fun initViewModel(): Class<CollectionViewModel> = CollectionViewModel::class.java

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.fragment_mine_collection

    override fun initData() {
        super.initData()
        mViewModel?.loadCollectionList()
    }

}